package com.itaming.lycheeframework.redis.properties;

import com.itaming.lycheeframework.common.constant.FrameworkConstant;
import com.itaming.lycheeframework.redis.serializer.SerializationMode;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Redis配置参数
 *
 * @author A.Ming
 */
@ConfigurationProperties(LycheeRedisProperties.PREFIX)
@Data
public class LycheeRedisProperties {

    /**
     * 前缀
     */
    public static final String PREFIX = FrameworkConstant.PROPERTIES_ROOT_NAME + ".redis";

    /**
     * 序列化模式，默认：Protostuff
     */
    private SerializationMode serializationMode = SerializationMode.PROTOSTUFF;

}
